package info.wf0913.blogger_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import info.wf0913.blogger_core.mapper.ICrudMapper;
import info.wf0913.blogger_service.bean.Essay;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EssayMapper extends ICrudMapper<Essay> {
    /**
     * 查询评论id
     * @return
     */
     List<Integer> getCommentIds(Integer id);

    /**
     * 查询文章拥有的标签
     * @param id
     * @return
     */
    List<Integer> getLabelIds(Integer id);
}
